package com.woniuxy.portal.service;

import com.woniuxy.portal.model.vo.CartVo;

/**
 * 购物车业务层
 */
public interface CartService {

    /**
     * 获取用户的购物车
     */
    CartVo getCart(Long userId);

    CartVo addCart(Long userId, Long bookId);

    void removeCartItem(Long userId, Long bookId);

    void clearCart(Long userId);

}
